<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>

    <script type="text/javascript" src="easyui/jquery.min.js"></script>
    <script type="text/javascript">
        var src = {
            "application_name": "Hello",
            "trade_code": 1234
        };

        var result = {};
        /**
         * 替换对象的字段名成。例如： {"trade_code":1234}  变为 {"tradeCode":1234}
         */
        $.each(src, function (k, v) {
            var name = k.replace(/_[a-z]/g, function (substr) {
                var s = substr.substring(1, 2).toUpperCase();
                console.log(s);
                return s;
            });
            result[name] = v;
        });
        alert(JSON.stringify(result));
    </script>
</head>
<body>

</body>
</html>